#include "ObjTerrain.h"
#include "ModelLoader.h"

ObjTerrain::ObjTerrain(const char* modelFileName)
{
	m_Mesh = ModelLoader::get()->loadModel(modelFileName);
	renderer = new Renderer(m_Mesh);
}

ObjTerrain::~ObjTerrain()
{
}

void ObjTerrain::render()
{
	glPushMatrix();
	glTranslatef(0, -10.f, 0);
	glScalef(4.f, 4.f, 4.f);
	renderer->render();
	glPopMatrix();
}